package com.yuanfeng.payment.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.commoms.util.querypage.PageUtils;
import com.yuanfeng.commoms.util.querypage.Query;
import com.yuanfeng.payment.entity.PayDistributorStatementEntity;
import com.yuanfeng.payment.mapper.PayDistributorStatementMapper;
import com.yuanfeng.payment.service.PayDistributorStatementService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 *
 */
@Service
public class PayDistributorStatementServiceImpl extends ServiceImpl<PayDistributorStatementMapper, PayDistributorStatementEntity>
    implements PayDistributorStatementService{

    @Override
    public ResponseResult queryStatement(Map<String, Object> param) {
        IPage<PayDistributorStatementEntity> page=this.baseMapper.queryStatement(new Query<PayDistributorStatementEntity>().getPage(param),
                param);

        return ResponseResult.success(PageUtils.getPage(page));
    }
}




